determining the inverse of exponential and logarithmic functions